﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetDatafb.aspx.cs" Inherits="Handmade.GetDatafb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:Button ID="btnFetch" runat="server" Text="Get FaceBook Pictures" OnClick="Fetch" />
        <hr />
        <asp:Label runat="server" ID="lb_code" />
        <asp:Repeater ID="rptFaceBookAlbums" runat="server">
            <ItemTemplate>
                <div class="header">
                    <%# Eval("Name") %>
                </div>
                <div class="pics">
                    <asp:DataList ID="dlFaceBookImages" runat="server" CellSpacing="2" RepeatColumns="4" DataSource='<%# Eval("Images") %>'>
                        <ItemTemplate>
                            <asp:Image ID="Image1" CssClass="small" runat="server" ImageUrl='<%# Eval("Picture") %>' Style="cursor: pointer" />
                            <asp:Image ID="imgLarge" runat="server" ImageUrl='<%# Eval("Source") %>' Style="display: none"
                                Width='<%# System.Web.UI.WebControls.Unit.Parse(Eval("Width").ToString()) %>'
                                Height='<%# System.Web.UI.WebControls.Unit.Parse(Eval("Height").ToString()) %>' />
                        </ItemTemplate>
                    </asp:DataList>
                </div>
            </ItemTemplate>
            <SeparatorTemplate>
                <br />
                <br />
            </SeparatorTemplate>
        </asp:Repeater>
    </form>
</body>
</html>